
export default class GearFactory {
    private static _gearClasses: any[];

    public static setGearClasses(classes: any[]): void {
        this._gearClasses = classes;
    }

    public static create<T>(owner: any, index: number): T {
        let ret = new (this._gearClasses[index])();
        ret._owner = owner;
        return ret;
    }
}